﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/fruiterieAtwaterMP.Master"
    CodeBehind="profil.aspx.vb" Inherits="Fruiterie_Atwater.profil" %>

<asp:Content ID="ContentInscriptionHeader" ContentPlaceHolderID="head" runat="server">
    <title>Fruiterie Atwater | Profil</title>
    <style type="text/css">
        .style1
        {
            width: 470px;
        }
        .style2
        {
            width: 470px;
            height: 18px;
        }
        .style3
        {
            height: 18px;
        }
        .style5
        {
            width: 144px;
            margin-left: 40px;
        }
        .style6
        {
            width: 470px;
            height: 28px;
        }
        .style7
        {
            width: 144px;
            height: 28px;
            margin-left: 40px;
        }
    </style>

</asp:Content>
<asp:Content ID="ContentInscription" ContentPlaceHolderID="ContentPlaceHolderFruiterie_Atwater"
    runat="server">
<%--    <asp:SiteMapPath ID="SiteMapPath1" runat="server" SiteMapProvider="SiteMapGlobal">
    </asp:SiteMapPath>--%>
    <asp:Panel ID="PanelVue" runat="server">
    <table align="center" class="contactForm">
        <tr>
            <td colspan="2">
                Profil utilisateur
                <hr />
            </td>
        </tr>
        <tr>
            <td class="style1">
                Courriel :
            </td>
            <td>
                <asp:Label ID="LblCourriel" runat="server" MaxLength="120" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Identité
            </td>
        </tr>
        <tr>
            <td class="style1">
                Nom :
            </td>
            <td>
                <asp:Label ID="LblNom" runat="server" MaxLength="120" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Prénom :
            </td>
            <td>
                <asp:Label ID="LblPrenom" runat="server" MaxLength="120" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Coordonnées
            </td>
        </tr>
        <tr>
            <td class="style1">
                N° de rue :
            </td>
            <td>
                <asp:Label ID="LblNumRue" runat="server" MaxLength="10" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Rue :
            </td>
            <td>
                <asp:Label ID="LblNomRue" runat="server" MaxLength="240" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
                <tr>
            <td class="style2">
                Code postal :
            </td>
            <td class="style3">
                <asp:Label ID="LblCP" runat="server" MaxLength="120" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Ville :
            </td>
            <td>
                <asp:Label ID="LblVille" runat="server" MaxLength="120" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Téléphone :
            </td>
            <td>
                <asp:Label ID="LblTelephone" runat="server" MaxLength="10" TextMode="SingleLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummaryInscription" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Button ID="ButtonModifProfil" runat="server" Text="Je veux faire des modifications à mon profil." UseSubmitBehavior="false">
                </asp:Button><br />
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/membre/profil.aspx?mdp=true">Changer mon mot de passe</asp:HyperLink>
            </td>

        </tr>
    </table>
    </asp:Panel>

    <asp:Panel ID="Panelmdp" runat="server">
          <tr>
            <td class="style1">
                Mot de passe :
            </td>
            <td>
                <asp:TextBox ID="TxtBoxMdp" runat="server" MaxLength="120" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtBoxMdp" runat="server" ControlToValidate="TxtBoxMdp"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie d'un mot de passe est obligatoire."
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Confirmer votre mot de passe :
            </td>
            <td>
                <asp:TextBox ID="TxtBoxMdpConf" runat="server" MaxLength="120" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtBoxMdpConf" runat="server" ControlToValidate="TxtBoxMdpConf"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie d'un mot de passe doit être confirme."
                    Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="COMPMdp" runat="server" ControlToValidate="TxtBoxMdpConf"
                    ControlToCompare="TxtBoxMdp" Text="*" CssClass="errorSummaryAsterix" ErrorMessage="- Les mots de passes ne correspondent pas."
                    Display="Dynamic"></asp:CompareValidator>
                <br />
            </td>
        </tr>
        <tr>
        <td>
        </td>
        <td>
            <br />
        <asp:Button ID="ButtonModifMdp" runat="server" Text="Enregistrer" UseSubmitBehavior="false"/>
        </td>
        </tr>
    </asp:Panel>
    

    <asp:Panel ID="PanelModif" runat="server">
    <table align="center" class="contactForm">
        <tr>
            <td colspan="2">
                Profil utilisateur
                <hr />
            </td>
            
        </tr>
        <tr>
            <td colspan="2">
                Coordonnées
            </td>
        </tr>
        <tr>
            <td class="style1">
                N° de rue :
            </td>
            <td class="style5">
                <asp:TextBox ID="TxtBoxNumRue" runat="server" MaxLength="10" TextMode="SingleLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtBoxNumRue" runat="server" ControlToValidate="TxtBoxNumRue"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie du numero de rue est obligatoire."
                    Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REGVTxtBoxNumRue" runat="server" ControlToValidate="TxtBoxNumRue"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie du numero de rue doit être valide."
                    ValidationExpression="^[1-9][0-9]{0,4}" Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Rue :
            </td>
            <td class="style7">
                <asp:TextBox ID="TxtBoxNomRue" runat="server" MaxLength="240" 
                    TextMode="SingleLine" Width="173px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="REGVTxtBoxNomRue0" runat="server" 
                    ControlToValidate="TxtBoxNomRue" CssClass="errorAsterix" Display="Dynamic" 
                    ErrorMessage="- La saisie de votre rue ne peut contenir uniquement des lettres." 
                    Text="*" ValidationExpression="^[a-z A-Z]+$"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RFVTxtBoxNomRue0" runat="server" 
                    ControlToValidate="TxtBoxNomRue" CssClass="errorAsterix" Display="Dynamic" 
                    ErrorMessage="- La saisie de votre rue est obligatoire." Text="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Code postal :
            </td>
            <td class="style5">
                <asp:TextBox ID="TxtBoxCP" runat="server" MaxLength="120" TextMode="SingleLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtBoxCP" runat="server" ControlToValidate="TxtBoxCP"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie du code postal est obligatoire."
                    Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REGVTxtBoxCP" runat="server" ControlToValidate="TxtBoxCP"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie du code postal doit être valide (exemple H2E 2T9  ou H2E2T9)."
                    ValidationExpression="^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$"
                    Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Ville :
            </td>
            <td class="style5">
                <asp:TextBox ID="TxtBoxVille" runat="server" MaxLength="120" TextMode="SingleLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtBoxVille" runat="server" ControlToValidate="TxtBoxVille"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie de la ville est obligatoire."
                    Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REGVTxtBoxVille" runat="server" ControlToValidate="TxtBoxVille"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie de votre ville ne peut contenir uniquement des lettres."
                    ValidationExpression="^[a-zA-Z]+$" Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Téléphone :
            </td>
            <td class="style5">
                <asp:TextBox ID="TxtBoxTelephone" runat="server" MaxLength="10" TextMode="SingleLine"></asp:TextBox>
                <asp:RegularExpressionValidator ID="REGVTxtBoxTelephone" runat="server" ControlToValidate="TxtBoxTelephone"
                    Text="*" CssClass="errorAsterix" ErrorMessage="- La saisie du numero de telephone doit être valide."
                    ValidationExpression="[1-9][0-9]{9}" Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style1" colspan="2">
                <asp:Button ID="ButtonSoumettreProfil" runat="server" Text="Je modifie mes informations." UseSubmitBehavior="false">
                </asp:Button>
            </td>
        </tr>
    </table>
    </asp:Panel>
</asp:Content>
